#include <stdio.h>

int main()
{
	int arr1[100] = {0};
	int arr2[100] = {0};
	int arr3[100] = {0};
	int arr4[100] = {0};
	int count[100] = {0};
    int n = 0;
    int i = 0;
    int age = 0;
    float t = 0;
    
    scanf("%d",&n);
    
    while(i < n)
    {
    	scanf("%d",&age);
    	if(age>=0&&age<=18)
    	{
    		arr1[i] = age;
		}
		else if(age>=19&&age<=35)
		{
			arr2[i] = age;
		}
        else if(age>=36&&age<=60)
        {
        	arr3[i] = age;
		}
		else
		{
			arr4[i] = age;
		}
    	i++;	
	}
	i = 0;
    while(i<n)
    {
    	if(arr1[i] == 0)
    	{
    	    i++;	
		    continue;
    		
		}
		else
		{
			t++;
			i++;
		}
		
	}
	t/=n;
	printf("%.2f%%\n",100*t);
	t = 0;

    i = 0;
    while(i<n)
    {
    	if(arr2[i] == 0)
    	{
    		i++;	
		    continue;
		}
		else
		{
			t++;
			i++;
		}
	
	}
	t/=n;
	printf("%.2f%%\n",100*t);
	t = 0;

    i = 0;
    while(i<n)
    {
    	if(arr3[i] == 0)
    	{
    		i++;	
		    continue;
		}
		else
		{
			t++;
			i++;
		}
	
	}
	t/=n;
	printf("%.2f%%\n",100*t);
	t = 0;
	
	i = 0;
    while(i<n)
    {
    	if(arr4[i] == 0)
    	{
    		i++;	
		    continue;
		}
		else
		{
			t++;
			i++;
		}
	}
	t/=n;
	printf("%.2f%%\n",100*t);
	t = 0;

 
	return 0;
}
